package com.xhlj.service;

import com.aliyun.oss.ClientException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhlj.entity.FileOss;
import com.xhlj.utils.Result;
import org.springframework.web.multipart.MultipartFile;

public interface FileService extends IService<FileOss> {

    Result uploadFile(MultipartFile file, String fileDes,String folderName) throws com.aliyuncs.exceptions.ClientException;

    //根据文件路径下载文件
    Result downloadFile(Integer fileId,String localUrl) throws ClientException, com.aliyuncs.exceptions.ClientException;

    //todo:从bucket中列举文件列表
    Result getFileListFromOss();

    Result deleteFile(String fileId);
}
